//
//  Student.m
//  OC2_实例变量可见度和方法
//
//  Created by 徐国庆 on 14-10-31.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Student.h"

@implementation Student

// 实现设置器方法
- (void)setName:(NSString *)name andSex:(NSString *)sex andNumber:(int)number andAge:(int)age andSorce:(float)sorce
{
    _name = name;
    _sex = sex;
    _number = number;
    _age = age;
    _sorce = sorce;
}
// 声明访问器方法
- (NSString *)name
{
    return _name;
}
- (NSString *)sex
{
    return _sex;
}
- (int)number
{
    return _number;
}
- (int)age
{
    return _age;
}
- (float)sorce
{
    return _sorce;
}



@end













